Platform Explorer / Nuxeo Platform 2021.56

Component org.nuxeo.ecm.platform.oauth.directoryContrib

Resolution Order

438
The resolution order represents the order in which this component has been resolved by the Nuxeo Runtime framework.
You can influence this order by adding "require" tags in your component declaration, to make sure it is resolved after another component.

Contributions

XML Source

<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.oauth.directoryContrib">

  <extension target="org.nuxeo.ecm.directory.GenericDirectory" point="directories">

    <directory name="oauth2ServiceProviders" extends="template-directory">
      <schema>oauth2ServiceProvider</schema>
      <idField>id</idField>
      <autoincrementIdField>true</autoincrementIdField>
      <substringMatchType>subfinal</substringMatchType>
      <types>
        <type>system</type>
      </types>
      <permissions>
        <permission name="Read">
          <group>___Nobody___</group>
        </permission>
      </permissions>
    </directory>

    <directory name="oauth2Tokens" extends="template-directory">
      <schema>oauth2Token</schema>
      <idField>id</idField>
      <autoincrementIdField>true</autoincrementIdField>
      <types>
        <type>system</type>
      </types>
      <permissions>
        <permission name="Read">
          <group>__Nobody__</group>
        </permission>
      </permissions>
    </directory>

    <directory name="oauth2Clients" extends="template-directory">
      <schema>oauth2Client</schema>
      <idField>id</idField>
      <autoincrementIdField>true</autoincrementIdField>
      <dataFile>directories/oauth2clients.csv</dataFile>
      <types>
        <type>system</type>
      </types>
      <permissions>
        <permission name="Read">
          <group>__Nobody__</group>
        </permission>
      </permissions>
    </directory>

  </extension>

  <extension target="org.nuxeo.ecm.core.schema.TypeService" point="schema">
    <property schema="oauth2Token" name="accessToken" indexOrder="ascending" />
    <property schema="oauth2Token" name="serviceName" indexOrder="ascending" />
  </extension>

</component>